projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e14e13a
)
(lunar-phase): Use calendar-mod instead of % so that it
author
Edward M. Reingold
<reingold@emr.cs.iit.edu>
Mon, 14 Mar 1994 17:21:31 +0000
(17:21 +0000)
committer
Edward M. Reingold
<reingold@emr.cs.iit.edu>
Mon, 14 Mar 1994 17:21:31 +0000
(17:21 +0000)
works for negative phase numbers.
lisp/calendar/lunar.el
patch
|
blob
|
history
diff --git
a/lisp/calendar/lunar.el
b/lisp/calendar/lunar.el
index dd0501083b6e147ed93e162545483f9c66615c60..9fe7f6fa530775717ac08213b1994d46e906df0a 100644
(file)
--- a/
lisp/calendar/lunar.el
+++ b/
lisp/calendar/lunar.el
@@
-84,7
+84,7
@@
Integer below INDEX/4 gives the lunation number, counting from Jan 1, 1900;
remainder mod 4 gives the phase: 0 new moon, 1 first quarter, 2 full moon,
3 last quarter."
- (let* ((phase (
%
index 4))
+ (let* ((phase (
calendar-mod
index 4))
(index (/ index 4.0))
(time (/ index 1236.85))
(date (+ (calendar-absolute-from-gregorian '(1 0.5 1900))